#coding:utf-8
import time
from common.WhaleApi import WhaleApi
from common.ebuyOpenPlatformUtil.OpenPlatformHttp import OpenPlatformHttp

__author__ = 'yangxianming'

# RSA模块测试
from common import component1
import json
import requests


def case():
    open_http = OpenPlatformHttp()
    whale_api = WhaleApi()
    testUrl = 'https://whaledev.e-buychina.com.cn/api/MakeCode'
    request_id = str(int(time.time() * 1000))

    #平台sdk调用
    #同步单条发码
    p = whale_api.get_makecode_data()
    r = open_http.send_http(testUrl, p[0], p[1])
    print(r)

    #返回测试结果
    return (False, '{"ok"}')


case()